home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / graphics / dvipdf.def < prev    next >
Text File  |  1997-03-07  |  5KB  |  147 lines

  1. %%
  2. %% This is file `dvipdf.def',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% drivers.dtx  (with options: `dvipdf,color1,psrulesZ')
  8. %% 
  9. %% drivers.dtx Copyright (C) 1994      David Carlisle Sebastian Rahtz
  10. %%             Copyright (C) 1995 1996 David Carlisle
  11. %%
  12. %% This file is part of the Standard LaTeX `Graphics Bundle'.
  13. %%
  14. %% It should be distributed *unchanged* and together with all other
  15. %% files in the graphics bundle. The file 00readme.txt contains a list
  16. %% of all of these files.
  17. %%
  18. %% A modified version of this file may be distributed, but it should
  19. %% be distributed with a *different* name. Changed files must be
  20. %% distributed *together with a complete and unchanged* distribution
  21. %% of these files.
  22. %%
  23. \ProvidesFile{dvipdf.def}
  24.         [1996/12/12 v3.0d Driver-dependant file (DPC,SPQR)]
  25. \def\c@lor@arg#1{%
  26.   \dimen@#1\p@
  27.   \ifdim\dimen@<\z@\dimen@\maxdimen\fi
  28.   \ifdim\dimen@>\p@
  29.     \PackageError{color}{Argument `#1' not in range [0,1]}\@ehd
  30.   \fi}
  31. \def\color@gray#1#2{%
  32.   \c@lor@arg{#2}%
  33.   \edef#1{gray #2}%
  34.   }
  35. \def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1}
  36. \def\c@lor@@cmyk#1,#2,#3,#4\@@#5{%
  37.   \c@lor@arg{#4}%
  38.   \c@lor@arg{#1}%
  39.   \c@lor@arg{#2}%
  40.   \c@lor@arg{#3}%
  41.   \edef#5{cmyk #1 #2 #3 #4}%
  42.   }
  43. \def\color@rgb#1#2{\c@lor@@rgb#2\@@#1}
  44. \def\c@lor@@rgb#1,#2,#3\@@#4{%
  45.   \c@lor@arg{#1}%
  46.   \c@lor@arg{#2}%
  47.   \c@lor@arg{#3}%
  48.   \edef#4{rgb #1 #2 #3}%
  49.   }
  50. \def\color@RGB#1#2{\c@lor@@RGB#2\@@#1}
  51. \def\c@lor@@RGB#1,#2,#3\@@#4{%
  52.  \c@lor@RGB@rgb{#1}\@tempa
  53.  \c@lor@RGB@rgb{#2}\@tempb
  54.  \c@lor@RGB@rgb{#3}\@tempc
  55.  \c@lor@@rgb\@tempa,\@tempb,\@tempc\@@#4%
  56.   }
  57. \def\c@lor@RGB@rgb#1#2{%
  58.   \dimen@#1\p@
  59.   \divide\dimen@\@cclv
  60.   \edef#2{\strip@pt\dimen@}}
  61. \def\color@hsb#1#2{\c@lor@@hsb#2\@@#1}
  62. \def\c@lor@@hsb#1,#2,#3\@@#4{%
  63.   \c@lor@arg{#1}%
  64.   \c@lor@arg{#2}%
  65.   \c@lor@arg{#3}%
  66.   \edef#4{hsb #1 #2 #3}%
  67.   }
  68. \def\color@named#1#2{\c@lor@@named#2,,\@@#1}
  69. \def\c@lor@@named#1,#2,#3\@@#4{%
  70.   \@ifundefined{col@#1}%
  71.     {\PackageError{color}{Undefined color `#1'}\@ehd}%
  72.   {\edef#4{ #1}}%
  73.   }
  74. \def\c@lor@to@ps#1 #2\@@{\csname c@lor@ps@#1\endcsname#2 \@@}
  75. \def\c@lor@ps@#1 #2\@@{TeXDict begin #1 end}
  76. \def\c@lor@ps@rgb#1\@@{#1 setrgbcolor}
  77. \def\c@lor@ps@hsb#1\@@{#1 sethsbcolor}
  78. \def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor}
  79. \def\c@lor@ps@gray#1\@@{#1 setgray}
  80. \def\current@color{ Black}
  81. \def\set@color{%
  82.             \special{pdf: /C  \current@color\space<<
  83.                           }\aftergroup\reset@color}
  84. \def\reset@color{\special{%
  85.          pdf: /C >> }}
  86. \def\set@page@color{\special{%
  87.          pdf: /BG \current@color}}
  88. \def\define@color@named#1#2{%
  89.   \expandafter\let\csname col@#1\endcsname\@nnil}
  90. \def\Ginclude@eps#1{%
  91.  \message{<#1>}%
  92.   \bgroup
  93.   \def\@tempa{!}%
  94.   \dimen@\Gin@req@width
  95.   \dimen@ii.1bp%
  96.   \divide\dimen@\dimen@ii
  97.   \@tempdima\Gin@req@height
  98.   \divide\@tempdima\dimen@ii
  99.     \special{PSfile="#1"\space
  100.       llx=\Gin@llx\space
  101.       lly=\Gin@lly\space
  102.       urx=\Gin@urx\space
  103.       ury=\Gin@ury\space
  104.       \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
  105.       \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
  106.       \ifGin@clip clip\fi}%
  107.   \egroup}
  108. \def\Ginclude@bmp#1{%
  109.   \message{<#1>}%
  110.   \dimen@\Gin@req@height
  111.   \advance\dimen@ by-\Gin@lly bp
  112.   \kern-\Gin@llx bp\raise\Gin@req@height\hbox{%
  113.    \ifdim\Gin@urx bp=\z@
  114.      \ifdim\Gin@ury bp=\z@
  115.         \special{pdf: /GRAPH  #1}%
  116.      \else
  117.         \special{pdf: /GRAPH  #1 \number\Gin@req@width sp}%
  118.      \fi
  119.   \else
  120.         \special{pdf: /GRAPH  #1 \number\Gin@req@width sp
  121.                                \number\Gin@req@height sp}%
  122.   \fi}}
  123. \def\Grot@start{%
  124. \special{pdf: /ROT \Grot@angle\space << }}
  125. \def\Grot@end{\special{pdf: /ROT >> }}
  126. \def\Gscale@start{\special{pdf: /S \Gscale@x\space \Gscale@y\space << }}
  127. \def\Gscale@end{\special{pdf: /S \space >> }}
  128. \def\Gin@PS@raw#1{\special{ps: #1}}
  129. \def\Gin@PS@restored#1{\special{" #1}}
  130. \def\Gin@PS@literal@header#1{\AtBeginDvi{\special{! #1}}}
  131. \def\Gin@PS@file@header#1{\AtBeginDvi{\special{header=#1}}}
  132. \@namedef{Gin@rule@.msp}#1{{bmp}{.bb}{#1}}
  133. \@namedef{Gin@rule@.jpg}#1{{bmp}{.bb}{#1}}
  134. \@namedef{Gin@rule@.bmp}#1{{bmp}{.bb}{#1}}
  135. \def\Gin@extensions{.eps,.ps,.eps.gz,.ps.gz,.eps.Z}
  136. \@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
  137. \@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
  138. \@namedef{Gin@rule@.pz}#1{{eps}{.bb}{`gunzip -c #1}}
  139. \@namedef{Gin@rule@.eps.Z}#1{{eps}{.eps.bb}{`gunzip -c #1}}
  140. \@namedef{Gin@rule@.ps.Z}#1{{eps}{.ps.bb}{`gunzip -c #1}}
  141. \@namedef{Gin@rule@.ps.gz}#1{{eps}{.ps.bb}{`gunzip -c #1}}
  142. \@namedef{Gin@rule@.eps.gz}#1{{eps}{.eps.bb}{`gunzip -c #1}}
  143. \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}}
  144. \endinput
  145. %%
  146. %% End of file `dvipdf.def'.
  147.